﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form6 : Form
    {
        public Form6()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var id = textBox1.Text;
            var title = textBox2.Text;
            var author = textBox3.Text;
            var createtime = textBox4.Text;
            var insert = string.Format("update Articles set Title='{1}',Author ='{2}',CreateTime = '{3}' where Id={0}", id, title, author, createtime);
            var i = DbHelsper.dataSet(insert);
            this.Close();
            Form3 form3 = new Form3();
            form3.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
            Form3 form3 = new Form3();
            form3.Show();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
